{% extends "base/content.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block title %}
  {% trans "New Meal Type" %}
{% endblock %}
{% block content %}
  <h1>{% trans "Create new meal type" %}</h1>
  <form method="post" action="{% url 'canteen:create_meal_type' %}">
    {% csrf_token %}
    {{ form|crispy }}
    <div class="py-3 fixed-bottom text-end bg-dark">
      <button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
      <button type="button" class="btn btn-danger" onclick="window.close();">
        {% trans "Cancel" %}
      </button>
    </div>
  </form>
{% endblock %}
